package com.cash.lemoloan.statisticlib.model;

import java.io.Serializable;
import java.util.Objects;


public class StatisticContactsInfo implements Serializable {
    private String statisticctime;//数据采集时间，毫秒级时间
    private int contactId;//当前位于第几条
    private String statisticname; //联系人名称
    private String statisticphone;//联系人手机号

    public String getlastModified() {
        return statisticlastModified;
    }

    public void setlastModified(String statisticlastModified) {
        this.statisticlastModified = statisticlastModified;
    }

    private String statisticlastModified; //联系人最后修改时间

    public String getCtime() {
        return statisticctime;
    }

    public void setCtime(String ctime) {
        this.statisticctime = ctime;
    }

    public int getContactId() {
        return contactId;
    }

    public void setContactId(int contactId) {
        this.contactId = contactId;
    }

    public String getName() {
        return statisticname;
    }

    public void setName(String name) {
        this.statisticname = name;
    }

    public String getPhone() {
        return statisticphone;
    }

    public void setPhone(String phone) {
        this.statisticphone = phone;
    }

    @Override
    public String toString() {
        return "ContactsInfo{" +
                "statisticctime='" + statisticctime + '\'' +
                ", contactId=" + contactId +
                ", statisticname='" + statisticname + '\'' +
                ", statisticphone='" + statisticphone + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StatisticContactsInfo that = (StatisticContactsInfo) o;
        return contactId == that.contactId && Objects.equals(statisticctime, that.statisticctime) && Objects.equals(statisticname, that.statisticname) && Objects.equals(statisticphone, that.statisticphone);
    }

    @Override
    public int hashCode() {
        return Objects.hash(statisticctime, contactId, statisticname, statisticphone);
    }
}

